import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions1: FilterItem[] = [
  {
    label: '操作规程:',
    prop: 'typeName',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '支持模糊搜索'
    }
  },
  {
    label: '更新时间:',
    prop: 'lastUpdateTime',
    type: 'datePicker',
    span: 10,
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'start-placeholder': '请选择时间',
      'end-placeholder': '请选择时间',
      'range-separator': '至',
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 2, 1, 23, 59, 59)
      ],
      'value-format': 'YYYY-MM-DD HH:mm:ss',
      'popper-options':{ // 日期弹窗位置
         modifiers: [
              {
                  name: 'flip',
                  options: {
                      fallbackPlacements: ['bottom'],
                      allowedAutoPlacements: ['bottom'],
                  }
              }
          ]
        }
    }
  }

]

export const dialogOptions: FilterItem[] = [
  {
    label: '选择标准来源',
    prop: 'typeName',
    type: 'select',
    span: 6,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择',
      options:[{
        label:"本地上传",
        value:1
      },{
        label:"知识库",
        value:2
      }]
    }
  },
  {
    label: '选择标准来源',
    prop: 'typeName',
    type: 'upload',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择标准来源'
    }
  }
]
